package day15.ZiXi;

import java.util.concurrent.ArrayBlockingQueue;

public class Demo02 {
    public static void main(String[] args) throws InterruptedException {
        ArrayBlockingQueue<String> arr = new ArrayBlockingQueue<>(1);
        arr.put("老八秘制小汉堡");
        System.out.println(arr.take());
        System.out.println(arr.take());
        System.out.println("程序结束了");
    }
}
